<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>jQuery Mobile Dialog Test Suite</title>

	<script src="../../../jquery.js"></script>
	<script>
		$(document).bind('mobileinit',function(){
			// Expect content to inherit this theme when not explicitly set
			$.mobile.page.prototype.options.contentTheme = "d";
		});
	</script>
	<script src="../jquery.setNameSpace.js"></script>
	<script src="../../../jquery.mobile-1.0.min.js"></script>
	<script src="../../../tests/jquery.testHelper.js"></script>


	<link rel="stylesheet"  href="../../../jquery.mobile-1.0.min.css"/>
	<link rel="stylesheet" href="../../../external/qunit.css"/>
	<script src="../../../external/qunit.js"></script>

	<script src="dialog_events.js"></script>

	<script src="../swarminject.js"></script>
</head>
<body>

<h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="mypage" data-nstest-role="page" data-nstest-theme="a">
	<a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
	<a href="#dialog-a" id="link-a" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">no theme set</a>
	<a href="#dialog-b" id="link-b" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme set</a>
	<a href="#dialog-c" id="link-c" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme & data-nstest-overlay-theme set</a>
</div>

<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
	<div  data-nstest-role="header" data-nstest-position="inline">
		<h1>Dialog</h1>
	</div>
	<div data-nstest-role="content" >
		<a href="#" id="internal-link">foo</a>
	</div>
	<div data-nstest-role="footer">
		footer
	</div>
</div>

<div data-nstest-role="page" id="dialog-a">
	<div data-nstest-role="header" data-nstest-position="inline">
		<h1> No theme set </h1>
	</div>
	<div data-nstest-role="content">
		 Some text here....
	</div>
	<div data-nstest-role="footer">
		footer
	</div>
</div>

<div data-nstest-role="page" data-nstest-theme="e" id="dialog-b">
	<div data-nstest-role="header">
		<h1> data-nstest-theme set </h1>
	</div>
	<div data-nstest-role="content">
		 Some text here....
	</div>
	<div data-nstest-role="footer">
		footer
	</div>
</div>

<div data-nstest-role="page" id="dialog-c" data-nstest-overlay-theme="b" data-nstest-theme="e">
	<div data-nstest-role="header">
		<h1> data-nstest-theme & data-nstest-overlay-theme set </h1>
	</div>
	<div data-nstest-role="content">
		 Some text here....
	</div>
	<div data-nstest-role="footer">
		footer
	</div>
</div>

</body>
</html>
